/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kmcsoft.goldshop.model.master;

import com.kmcsoft.emaster.entity.TrackableEntity;
import java.util.ArrayList;
import java.util.List;
import javax.jdo.annotations.FetchGroup;
import javax.jdo.annotations.FetchGroups;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

/**
 *
 * @author kmcsoft02
 */
@PersistenceCapable(detachable = "true", table = "SHOP_JEWRLRYINFOMARTION")
@FetchGroups(value = {
    @FetchGroup(name = "detach_JewelryInformation_All", members = {
        @Persistent(name = "diamondSells"),
        @Persistent(name = "currency"),
        @Persistent(name = "createdBy"),
        @Persistent(name = "diamondExchanges")
    }),
    @FetchGroup(name = "detach_JewelryInformation_Currency", members = {
        @Persistent(name = "currency")}),
    @FetchGroup(name = "detach_JewelryInformation_diamondSells", members = {
        @Persistent(name = "diamondSells")}),
    @FetchGroup(name = "detach_JewelryInformation_diamondExchanges", members = {
        @Persistent(name = "diamondExchanges")})
})
public class JewelryInformation extends TrackableEntity {

    @Persistent
    private Currency currency;
    @Persistent
    private double descendingByEmployee;
    @Persistent
    private double descendingByLeader;
    @Persistent
    private double stakesExpiredDate;//ngay het han tien coc
    @Persistent
    private double stakesPerPrice;
    @Persistent
    private double gapPrice;
    @Persistent
    private List<PriceTradingDiamond> diamondSells;
    @Persistent
    private List<PriceTradingDiamond> diamondExchanges;
    @Persistent
    private double diamondWithoutCerfiticate;
    @Persistent
    private double italyGoldSellLoss;
    @Persistent
    private int italyGoldExchangeDate;
    @Persistent
    private double italyGoldExchangeBeforeDateLoss;
    @Persistent
    private double italyGoldExchangeAfterDateLoss;
    @Persistent
    private double jewelrySellLoss;
    @Persistent
    private double jewelryExchangeLoss;
    @Persistent
    double plusForRetail;
    @Persistent
    private boolean use;

    public JewelryInformation() {
        diamondSells = new ArrayList<PriceTradingDiamond>();
        diamondExchanges = new ArrayList<PriceTradingDiamond>();

    }

    public double getDescendingByEmployee() {
        return descendingByEmployee;
    }

    public void setDescendingByEmployee(double descendingByEmployee) {
        this.descendingByEmployee = descendingByEmployee;
    }

    public double getDescendingByLeader() {
        return descendingByLeader;
    }

    public void setDescendingByLeader(double descendingByLeader) {
        this.descendingByLeader = descendingByLeader;
    }

    public double getStakesExpiredDate() {
        return stakesExpiredDate;
    }

    public void setStakesExpiredDate(double stakesExpiredDate) {
        this.stakesExpiredDate = stakesExpiredDate;
    }

    public double getStakesPerPrice() {
        return stakesPerPrice;
    }

    public void setStakesPerPrice(double stakesPerPrice) {
        this.stakesPerPrice = stakesPerPrice;
    }

    public double getGapPrice() {
        return gapPrice;
    }

    public void setGapPrice(double gapPrice) {
        this.gapPrice = gapPrice;
    }

    public List<PriceTradingDiamond> getDiamondSells() {
        return diamondSells;
    }

    public void setDiamondSells(List<PriceTradingDiamond> diamondSells) {
        this.diamondSells = diamondSells;
    }

    public List<PriceTradingDiamond> getDiamondExchanges() {
        return diamondExchanges;
    }

    public void setDiamondExchanges(List<PriceTradingDiamond> diamondExchanges) {
        this.diamondExchanges = diamondExchanges;
    }

    public double getDiamondWithoutCerfiticate() {
        return diamondWithoutCerfiticate;
    }

    public void setDiamondWithoutCerfiticate(double diamondWithoutCerfiticate) {
        this.diamondWithoutCerfiticate = diamondWithoutCerfiticate;
    }

    public double getItalyGoldSellLoss() {
        return italyGoldSellLoss;
    }

    public void setItalyGoldSellLoss(double italyGoldSellLoss) {
        this.italyGoldSellLoss = italyGoldSellLoss;
    }

    public int getItalyGoldExchangeDate() {
        return italyGoldExchangeDate;
    }

    public void setItalyGoldExchangeDate(int italyGoldExchangeDate) {
        this.italyGoldExchangeDate = italyGoldExchangeDate;
    }

    public double getItalyGoldExchangeBeforeDateLoss() {
        return italyGoldExchangeBeforeDateLoss;
    }

    public void setItalyGoldExchangeBeforeDateLoss(double italyGoldExchangeBeforeDateLoss) {
        this.italyGoldExchangeBeforeDateLoss = italyGoldExchangeBeforeDateLoss;
    }

    public double getItalyGoldExchangeAfterDateLoss() {
        return italyGoldExchangeAfterDateLoss;
    }

    public void setItalyGoldExchangeAfterDateLoss(double italyGoldExchangeAfterDateLoss) {
        this.italyGoldExchangeAfterDateLoss = italyGoldExchangeAfterDateLoss;
    }

    public double getJewelrySellLoss() {
        return jewelrySellLoss;
    }

    public void setJewelrySellLoss(double jewelrySellLoss) {
        this.jewelrySellLoss = jewelrySellLoss;
    }

    public double getJewelryExchangeLoss() {
        return jewelryExchangeLoss;
    }

    public void setJewelryExchangeLoss(double jewelryExchangeLoss) {
        this.jewelryExchangeLoss = jewelryExchangeLoss;
    }

    public boolean isUse() {
        return use;
    }

    public void setUse(boolean use) {
        this.use = use;
    }

    public Currency getCurrency() {
        return currency;
    }

    public void setCurrency(Currency currency) {
        this.currency = currency;
    }

    public double getPlusForRetail() {
        return plusForRetail;
    }

    public void setPlusForRetail(double plusForRetail) {
        this.plusForRetail = plusForRetail;
    }
}
